<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: /bb/mbigc/mbig5696/git/quantum_external/src/quantum_dispatcher_core.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d2/d44/quantum__dispatcher__core_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">quantum_dispatcher_core.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">** Copyright 2018 Bloomberg Finance L.P.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">** Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">** you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">** You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**     http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">**</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">** Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">** distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">** See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">** limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef BLOOMBERG_QUANTUM_DISPATCHER_CORE_H</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define BLOOMBERG_QUANTUM_DISPATCHER_CORE_H</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;condition_variable&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;mutex&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;atomic&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;thread&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifdef _WIN32</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;winbase.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;pthread.h&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_configuration.h&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_task_queue.h&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;quantum/quantum_io_queue.h&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>quantum {</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">//                                 class DispatcherCore</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">//==============================================================================================</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">   45</a></span>&#160;<span class="comment"></span><span class="keyword">class </span><a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">DispatcherCore</a> : <span class="keyword">public</span> <a class="code" href="../../d2/d41/namespaceITerminate.html">ITerminate</a></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#ad90424f003fc2afb836709cbffa47e2c">   48</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="../../d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html">Dispatcher</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#ae747f986c1d7522fd4ed0c4b3de96732">~DispatcherCore</a>();</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    </div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a2dacf07e91eac243eb8f04fd15439a68">terminate</a>() final;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    </div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a22af778923be5c27ee28afee507ff526">size</a>(<a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">IQueue</a>::QueueType type, <span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    </div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a02e7eae389a072f05d1992c32c0b78f0">empty</a>(<a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">IQueue</a>::QueueType type, <span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="../../d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html">QueueStatistics</a> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a0eda12947329e9ee3e96e3e85d5b565d">stats</a>(<a class="code" href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">IQueue</a>::QueueType type, <span class="keywordtype">int</span> queueId);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    </div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#aeea390ebcc2e7fc5dbbb0f7e86c9a818">resetStats</a>();</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a826579f9aaf8b89a38bbc45c16e865b3">post</a>(<a class="code" href="../../d0/d90/classBloomberg_1_1quantum_1_1Task.html">Task</a>::Ptr task);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    </div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a2f58dcf2f653fb41460b97c48d467d5d">postAsyncIo</a>(<a class="code" href="../../d4/d8b/classBloomberg_1_1quantum_1_1IoTask.html">IoTask</a>::Ptr task);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a717239b790a7ceadd80099bad1bf919c">getNumCoroutineThreads</a>() const;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    </div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a5ea94d05eaa30d66636a574f9c26d00e">getNumIoThreads</a>() const;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    const <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::pair&lt;<span class="keywordtype">int</span>, <span class="keywordtype">int</span>&gt;&amp; <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#ad444ad675fdf83330bdbe0707de6bd2e">getCoroQueueIdRangeForAny</a>() const;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    </div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;private:</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">// TODO : Remove - deprecated</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">DispatcherCore</a>(<span class="keywordtype">int</span> numCoroutineThreads,</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                   <span class="keywordtype">int</span> numIoThreads,</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                   <span class="keywordtype">bool</span> pinCoroutineThreadsToCores);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">DispatcherCore</a>(const <a class="code" href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html">Configuration</a>&amp; config);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">size_t</span> coroSize(<span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    </div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">size_t</span> ioSize(<span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    </div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">bool</span> coroEmpty(<span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">bool</span> ioEmpty(<span class="keywordtype">int</span> queueId) const;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="../../d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html">QueueStatistics</a> coroStats(<span class="keywordtype">int</span> queueId);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    </div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="../../d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html">QueueStatistics</a> ioStats(<span class="keywordtype">int</span> queueId);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="comment">//Members</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../d8/d06/classBloomberg_1_1quantum_1_1TaskQueue.html">TaskQueue</a>&gt;    _coroQueues;     <span class="comment">//coroutine queues</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../d4/dd1/classBloomberg_1_1quantum_1_1IoQueue.html">IoQueue</a>&gt;      _sharedIoQueues; <span class="comment">//shared IO task queues (hold tasks posted to &#39;Any&#39; IO queue)</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::vector&lt;<a class="code" href="../../d4/dd1/classBloomberg_1_1quantum_1_1IoQueue.html">IoQueue</a>&gt;      _ioQueues;       <span class="comment">//dedicated IO task queues</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordtype">bool</span>                      _loadBalanceSharedIoQueues; <span class="comment">//tasks posted to &#39;Any&#39; IO queue are load balanced</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::atomic_flag          _terminated;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="../../d8/dcc/namespacestd.html">std</a>::pair&lt;<span class="keywordtype">int</span>, <span class="keywordtype">int</span>&gt;       _coroQueueIdRangeForAny; <span class="comment">// range of coroutine queueIds covered by &#39;Any&#39; </span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;};</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}}</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#include &lt;quantum/impl/quantum_dispatcher_core_impl.h&gt;</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#endif //BLOOMBERG_QUANTUM_DISPATCHER_CORE_H</span></div><div class="ttc" id="classBloomberg_1_1quantum_1_1IoTask_html"><div class="ttname"><a href="../../d4/d8b/classBloomberg_1_1quantum_1_1IoTask.html">Bloomberg::quantum::IoTask</a></div><div class="ttdoc">Long running or blocking task running in the IO thread pool.</div><div class="ttdef"><b>Definition:</b> quantum_io_task.h:34</div></div>
<div class="ttc" id="namespaceBloomberg_html"><div class="ttname"><a href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></div><div class="ttdef"><b>Definition:</b> quantum_buffer_impl.h:22</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_ae747f986c1d7522fd4ed0c4b3de96732"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#ae747f986c1d7522fd4ed0c4b3de96732">Bloomberg::quantum::DispatcherCore::~DispatcherCore</a></div><div class="ttdeci">~DispatcherCore()</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:76</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1IoQueue_html"><div class="ttname"><a href="../../d4/dd1/classBloomberg_1_1quantum_1_1IoQueue.html">Bloomberg::quantum::IoQueue</a></div><div class="ttdoc">Thread queue for executing IO tasks.</div><div class="ttdef"><b>Definition:</b> quantum_io_queue.h:40</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a0eda12947329e9ee3e96e3e85d5b565d"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a0eda12947329e9ee3e96e3e85d5b565d">Bloomberg::quantum::DispatcherCore::stats</a></div><div class="ttdeci">QueueStatistics stats(IQueue::QueueType type, int queueId)</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:240</div></div>
<div class="ttc" id="namespaceITerminate_html"><div class="ttname"><a href="../../d2/d41/namespaceITerminate.html">ITerminate</a></div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html">Bloomberg::quantum::DispatcherCore</a></div><div class="ttdoc">Class implementing the dispatching logic unto worker threads. Used for both coroutines and IO tasks.</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core.h:45</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="../../d8/dcc/namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> quantum_stl_impl.h:23</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a2dacf07e91eac243eb8f04fd15439a68"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a2dacf07e91eac243eb8f04fd15439a68">Bloomberg::quantum::DispatcherCore::terminate</a></div><div class="ttdeci">void terminate() final</div><div class="ttdoc">Terminates the object.</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:82</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a5ea94d05eaa30d66636a574f9c26d00e"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a5ea94d05eaa30d66636a574f9c26d00e">Bloomberg::quantum::DispatcherCore::getNumIoThreads</a></div><div class="ttdeci">int getNumIoThreads() const</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:423</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Task_html"><div class="ttname"><a href="../../d0/d90/classBloomberg_1_1quantum_1_1Task.html">Bloomberg::quantum::Task</a></div><div class="ttdoc">Runnable object representing a coroutine.</div><div class="ttdef"><b>Definition:</b> quantum_task.h:40</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Dispatcher_html"><div class="ttname"><a href="../../d0/da5/classBloomberg_1_1quantum_1_1Dispatcher.html">Bloomberg::quantum::Dispatcher</a></div><div class="ttdoc">Parallel execution engine used to run coroutines or IO tasks asynchronously. This class is the main e...</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher.h:34</div></div>
<div class="ttc" id="structBloomberg_1_1quantum_1_1IQueue_html"><div class="ttname"><a href="../../d2/db0/structBloomberg_1_1quantum_1_1IQueue.html">Bloomberg::quantum::IQueue</a></div><div class="ttdoc">Interface to a task queue. For internal use only.</div><div class="ttdef"><b>Definition:</b> quantum_iqueue.h:33</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1QueueStatistics_html"><div class="ttname"><a href="../../d1/d7b/classBloomberg_1_1quantum_1_1QueueStatistics.html">Bloomberg::quantum::QueueStatistics</a></div><div class="ttdoc">Provides various counters related to queues and task execution.</div><div class="ttdef"><b>Definition:</b> quantum_queue_statistics.h:30</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a22af778923be5c27ee28afee507ff526"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a22af778923be5c27ee28afee507ff526">Bloomberg::quantum::DispatcherCore::size</a></div><div class="ttdeci">size_t size(IQueue::QueueType type, int queueId) const</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:102</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a02e7eae389a072f05d1992c32c0b78f0"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a02e7eae389a072f05d1992c32c0b78f0">Bloomberg::quantum::DispatcherCore::empty</a></div><div class="ttdeci">bool empty(IQueue::QueueType type, int queueId) const</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:121</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1Configuration_html"><div class="ttname"><a href="../../db/dda/classBloomberg_1_1quantum_1_1Configuration.html">Bloomberg::quantum::Configuration</a></div><div class="ttdef"><b>Definition:</b> quantum_configuration.h:31</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1TaskQueue_html"><div class="ttname"><a href="../../d8/d06/classBloomberg_1_1quantum_1_1TaskQueue.html">Bloomberg::quantum::TaskQueue</a></div><div class="ttdoc">Thread queue for running coroutines.</div><div class="ttdef"><b>Definition:</b> quantum_task_queue.h:45</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_ad444ad675fdf83330bdbe0707de6bd2e"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#ad444ad675fdf83330bdbe0707de6bd2e">Bloomberg::quantum::DispatcherCore::getCoroQueueIdRangeForAny</a></div><div class="ttdeci">const std::pair&lt; int, int &gt; &amp; getCoroQueueIdRangeForAny() const</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:429</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a2f58dcf2f653fb41460b97c48d467d5d"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a2f58dcf2f653fb41460b97c48d467d5d">Bloomberg::quantum::DispatcherCore::postAsyncIo</a></div><div class="ttdeci">void postAsyncIo(IoTask::Ptr task)</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:373</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a826579f9aaf8b89a38bbc45c16e865b3"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a826579f9aaf8b89a38bbc45c16e865b3">Bloomberg::quantum::DispatcherCore::post</a></div><div class="ttdeci">void post(Task::Ptr task)</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:332</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_aeea390ebcc2e7fc5dbbb0f7e86c9a818"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#aeea390ebcc2e7fc5dbbb0f7e86c9a818">Bloomberg::quantum::DispatcherCore::resetStats</a></div><div class="ttdeci">void resetStats()</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:315</div></div>
<div class="ttc" id="classBloomberg_1_1quantum_1_1DispatcherCore_html_a717239b790a7ceadd80099bad1bf919c"><div class="ttname"><a href="../../da/daa/classBloomberg_1_1quantum_1_1DispatcherCore.html#a717239b790a7ceadd80099bad1bf919c">Bloomberg::quantum::DispatcherCore::getNumCoroutineThreads</a></div><div class="ttdeci">int getNumCoroutineThreads() const</div><div class="ttdef"><b>Definition:</b> quantum_dispatcher_core_impl.h:417</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>quantum_dispatcher_core.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
